package com.tulingxueyuan.mall.security.tulingtest.singlon;

import java.awt.event.WindowStateListener;

/**
 * @author :     sunting
 * @date :    2023/6/5 11:25
 * @description :
 */
//静态内部类
public class Singlon3 {

    private static class Singlon3Inner{
        private static final Singlon3 instance = new Singlon3();
    }

    public static synchronized Singlon3 getinstance(){
        return Singlon3Inner.instance;
    }
}
